package com.xnyzc.lhy.finance.entity.bill;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 司机账单表
*
* @author wangshuo
* @since 2019-10-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaDBill对象", description="司机账单表")
public class OaDBill implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账单ID")
    @TableId(value="bill_id", type = IdType.INPUT)
    private Long billId;

    @ApiModelProperty(value = "交易流水号")
    private String billNumber;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "订单流水号")
    private String orderNumber;

    @ApiModelProperty(value = "账单金额")
    private BigDecimal billAmount;

    @ApiModelProperty(value = "账单类型(0:收入,1:支出)")
    private Integer billType;

    @ApiModelProperty(value = "账单类型描述")
    private String billTypeDesc;

    @ApiModelProperty(value = "账单类型描述文本")
    @TableField(exist = false)
    private String billTypeLabel;

    @ApiModelProperty(value = "账单来源")
    private Integer logonTag;

    @ApiModelProperty(value = "账单来源描述文本")
    @TableField(exist = false)
    private String logonTagLabel;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String BILL_ID = "bill_id";

    public static final String ORDER_ID = "order_id";

    public static final String DRIVER_ID = "driver_id";

    public static final String BILL_AMOUNT = "bill_amount";

    public static final String BILL_TYPE = "bill_type";

    public static final String BILL_TYPE_DESC = "bill_type_desc";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
